<?php
	include_js("ajaxLoader");include_js("databaseCheck");
	$dbAdress = ($PHPFoxEngine->db_address != "")? $PHPFoxEngine->db_address:str_replace("www","mysql",$_SERVER['SERVER_NAME']);
	$dbLogin = ($PHPFoxEngine->db_login != "")? $PHPFoxEngine->db_login:"";
	$dbPass = ($PHPFoxEngine->db_pass != "")? $PHPFoxEngine->db_pass:"";
	$dbTable = ($PHPFoxEngine->db_base != "")? $PHPFoxEngine->db_base:"";
?>
<div id="formulaire_db">
    <form action="" method="post">
        <ul>
        <li>Adresse de la base de données : <input type="text" id="dbAdress" name="dbAdress" value="<?php echo $dbAdress; ?>"></li>
        <li>Login : <input type="text" id="dbLogin" name="dbLogin" value="<?php echo $dbLogin; ?>"></li>
        <li>Mot de passe : <input type="password" id="dbPass" name="dbPass" value="<?php echo $dbPass; ?>"></li>
        <li>Table : <input type="text" id="dbTable" name="dbTable" value="<?php echo $dbTable; ?>"></li>
        <li><input type="button" value="Tester et sauvegarder" onClick="updateDatabase(document.getElementById('dbAdress').value,document.getElementById('dbLogin').value,document.getElementById('dbPass').value,document.getElementById('dbTable').value)" name="submit"></li>
        </ul>
    </form>
</div>
<ul id="result"></ul>